<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" import="java.util.*" %>
<%@ page import="com.itr.kbm.model.SessionDataObject"%>

<%
	if (session.getAttribute("logindata") == null) {
		response.sendRedirect(request.getContextPath() + "/billing");
	} else {
		SessionDataObject object = (SessionDataObject) session
				.getAttribute("logindata");
%>

<div class=" col-md-3">
	<div class="panel-group" id="leftMenu">
		<div class="panel panel-default">

			<div class="panel-heading ${form.reportActive }" id="heading2"
				data-parent="#leftMenu">
				<h4 class="panel-title">

					<i class="fa fa-table"></i> Billing Management

				</h4>
			</div>
			<div id="collapse1" class="panel-collapse 
			in
			">
				<div class="panel-body">
					<ul>

						<%
							if (object.getTypeUser().equals("kopeg")) {
						%>
						<br />
						<a class=""
							href="${pageContext.request.contextPath}/upload_kopeg/">
							<li class=""><i class="fa fa-cloud-upload"></i> Upload Kopeg
								Data</li>
						</a>
						<br />
						<a class=""
							href="${pageContext.request.contextPath}/download_final_report/">
							<li class=""><i class="fa fa-save"></i> Download Final
								Report</li>
						</a>
						<%
							}
						%>

						<%
							if (object.getTypeUser().equals("adminKopeg")) {
						%>
						<br />
						<a class="" href="${pageContext.request.contextPath}/merge/">
							<li class=""><i class="fa fa-list"></i> Summarize & Download</li>
						</a>
						<br />
						<a class=""
							href="${pageContext.request.contextPath}/upload_compare/">
							<li class=""><i class="fa fa-cloud-upload"></i> Upload
								Compare Data</li>
						</a>
						<br />
						<a class="" href="${pageContext.request.contextPath}/compare/">
							<li class=""><i class="fa fa-list"></i> Compare & Download</li>
						</a>
						<br />
						<a class=""
							href="${pageContext.request.contextPath}/upload_final_report/">
							<li class=""><i class="fa fa-cloud-upload"></i> Upload Final
								Report</li>
						</a>
						<br />
						<a class="" href="${pageContext.request.contextPath}/split/">
							<li class=""><i class="fa fa-cut"></i> Split Final Report</li>
						</a>
						<%
							}
						%>

						<%
							if (object.getTypeUser().equals("admin")) {
						%>

						<br />
						<a class=""
							href="${pageContext.request.contextPath}/upload_employee/">
							<li class=""><i class="fa fa-cloud-upload"></i> Upload
								Employee Data</li>
						</a>
						<br />
						<a class=""
							href="${pageContext.request.contextPath}/upload_list_kopeg/">
							<li class=""><i class="fa fa-cloud-upload"></i> Upload List
								Kopeg Data</li>
						</a>
						<%
							}
						%>

						<%
							if (object.getTypeUser().equals("koptelProduct")) {
						%>
						<br />
						<a class=""
							href="${pageContext.request.contextPath}/upload_koptel_product/">
							<li class=""><i class="fa fa-cloud-upload"></i> Upload
								Koptel Product Data</li>
						</a>
						<br />
						<a class=""
							href="${pageContext.request.contextPath}/download_final_report_product/">
							<li class=""><i class="fa fa-save"></i> Download Final
								Report Product</li>
						</a>
						<%
							}
						%>

						<%
							if (object.getTypeUser().equals("adminKoptelProduct")) {
						%>
						<br />
						<a class=""
							href="${pageContext.request.contextPath}/merge_product/">
							<li class=""><i class="fa fa-list"></i> Summarize & Download</li>
						</a>
						<br />
						<a class=""
							href="${pageContext.request.contextPath}/upload_compare_product/">
							<li class=""><i class="fa fa-cloud-upload"></i> Upload
								Compare Product Data</li>
						</a>
						<br />
						<a class=""
							href="${pageContext.request.contextPath}/compare_product/">
							<li class=""><i class="fa fa-list"></i> Compare & Download</li>
						</a>
						<br />
						<a class=""
							href="${pageContext.request.contextPath}/upload_final_report_product/">
							<li class=""><i class="fa fa-cloud-upload"></i> Upload Final
								Report Product</li>
						</a>
						<br />
						<a class=""
							href="${pageContext.request.contextPath}/split_product/">
							<li class=""><i class="fa fa-cut"></i> Split Final Report
								Product</li>
						</a>
						<%
							}
						%>

						<%
							if (object.getTypeUser().equals("admin")) {
						%>
						<br />
						<a class=""
							href="${pageContext.request.contextPath}/upload_list_koptel_product/">
							<li class=""><i class="fa fa-cloud-upload"></i> Upload List
								Koptel Product Data</li>
						</a>
						<%
							}
						%>

						<br />
						<a class=""
							href="${pageContext.request.contextPath}/change_password/">
							<li class=""><i class="fa fa-pencil"></i> Change Password</li>
						</a>
					</ul>
				</div>
			</div>

		</div>
	</div>
	<br /> <br /> <br /> <br /> <br /> <br /> <br />
</div>
<%
	}
%>